<?php

//绑定水机
Route::post('bind', 'DeviceController@bind');
//解绑水机
Route::post('unbind', 'DeviceController@unbindByDeviceCode');
//在绑定的水机间进行切换
Route::post('change', 'DeviceController@change');
//解绑当前控制的水机
Route::post('unbind-current', 'DeviceController@unbindCurrentDeviceCode');

Route::group(['middleware' => 'offline'], function(){
	//解绑水机后跳转页面
    Route::post('unbind-redirect', 'DeviceController@unbindByDeviceCode');
	
    Route::post('getState', 'DeviceController@getState');
	//发送指令
	Route::post('control', 'DeviceController@control');
});